import request from "@/utils/request";

// 分页查询
export const queryPageApi = (data) => request.get("/users", { params: data});
// 添加
export const addApi = (data) => request.post("/users", data);
//根据Id查询回显
export const queryByIdApi = (id) => request.get(`/users/${id}`);
// 修改
export const updateApi = (data) => request.put("/users", data);
// 删除
export const deleteApi = (id) => request.delete(`/users/${id}`); 